Skip to content

Comments

test(files): add tests to confirm reads don't impact quota in stream_read#57458

Draft
joshtrichards wants to merge 3 commits intomasterfrom
jtr/fix-files-stream-quota-streamRead
Draft

test(files): add tests to confirm reads don't impact quota in stream_read#57458
joshtrichards wants to merge 3 commits intomasterfrom
jtr/fix-files-stream-quota-streamRead

Conversation

@joshtrichards
Copy link
Member

  • Resolves: #

Summary

TODO

  • ...

Checklist

…read

Signed-off-by: Josh <josh.t.richards@gmail.com>
Refactors Quota stream logic so that quota is only decremented when writes grow the file, not on overwrites, reads, or seeks. This ensures quota enforcement is robust and matches expected storage semantics. Adds extra safety checks after writing to prevent quota drift.

Follow-up to #55731

Signed-off-by: Josh <josh.t.richards@gmail.com>
…verwrites

Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant